
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>7.3.1 broker 配置信息 · 大数据 Fulume 课堂笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content=" 李振超">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism-solarizedlight.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-change_girls/girls.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="732-producer-pei-zhi-xin-xi.html" />
    
    
    <link rel="prev" href="../73-kafka-pei-zhi-xin-xi.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.atguigu.com/" target="_blank" class="custom-link">联系我们</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    第 1 章 Kafka 概述
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../../11-xiao-xi-dui-lie.html">
            
                <a href="../../11-xiao-xi-dui-lie.html">
            
                    
                    1.1 消息队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="../../12-wei-shi-yao-xu-yao-xiao-xi-dui-lie.html">
            
                <a href="../../12-wei-shi-yao-xu-yao-xiao-xi-dui-lie.html">
            
                    
                    1.2 为什么需要消息队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="../../13-shi-yao-shi-kafka.html">
            
                <a href="../../13-shi-yao-shi-kafka.html">
            
                    
                    1.3 什么是 Kafka
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="../../14-kafka-jia-gou.html">
            
                <a href="../../14-kafka-jia-gou.html">
            
                    
                    1.4 Kafka 架构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../chapter1.html">
            
                <a href="../../chapter1.html">
            
                    
                    第 2 章 Kafka 集群部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../chapter1/21-xia-zai-kafka.html">
            
                <a href="../../chapter1/21-xia-zai-kafka.html">
            
                    
                    2.1 下载 Kafka
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../chapter1/22-bu-shu.html">
            
                <a href="../../chapter1/22-bu-shu.html">
            
                    
                    2.2 部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../chapter1/23-kafka-chang-yong-ming-ling-cao-zuo.html">
            
                <a href="../../chapter1/23-kafka-chang-yong-ming-ling-cao-zuo.html">
            
                    
                    2.3 Kafka 常用命令操作
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi.html">
            
                <a href="../../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi.html">
            
                    
                    第 3 章 Kafka 工作流程分析
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/31-kafka-sheng-cheng-guo-cheng-fen-xi.html">
            
                <a href="../../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/31-kafka-sheng-cheng-guo-cheng-fen-xi.html">
            
                    
                    3.1 Kafka 生产过程分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/32-broker-bao-cun-xiao-xi.html">
            
                <a href="../../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/32-broker-bao-cun-xiao-xi.html">
            
                    
                    3.2 broker 保存消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/33-zookeeper-cun-chu-jie-gou.html">
            
                <a href="../../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/33-zookeeper-cun-chu-jie-gou.html">
            
                    
                    3.3 Zookeeper 存储结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/34-kafka-xiao-fei-guo-cheng-fen-xi.html">
            
                <a href="../../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/34-kafka-xiao-fei-guo-cheng-fen-xi.html">
            
                    
                    3.4 Kafka 消费过程分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/35-xiao-fei-zhe-zu-an-li.html">
            
                <a href="../../di-3-zhang-kafka-gong-zuo-liu-cheng-fen-xi/35-xiao-fei-zhe-zu-an-li.html">
            
                    
                    3.5 消费者组案例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../di-4-zhang-api-shi-zhan.html">
            
                <a href="../../di-4-zhang-api-shi-zhan.html">
            
                    
                    第 4 章 API 实战
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../di-4-zhang-api-shi-zhan/41-huan-jing-zhun-bei.html">
            
                <a href="../../di-4-zhang-api-shi-zhan/41-huan-jing-zhun-bei.html">
            
                    
                    4.1 环境准备
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../di-4-zhang-api-shi-zhan/42-kafka-sheng-chan-zhe-api.html">
            
                <a href="../../di-4-zhang-api-shi-zhan/42-kafka-sheng-chan-zhe-api.html">
            
                    
                    4.2 Kafka 生产者 API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../di-4-zhang-api-shi-zhan/43-kafka-xiao-fei-zhe-api.html">
            
                <a href="../../di-4-zhang-api-shi-zhan/43-kafka-xiao-fei-zhe-api.html">
            
                    
                    4.3 Kafka 消费者 API
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.3.1" data-path="../../di-4-zhang-api-shi-zhan/43-kafka-xiao-fei-zhe-api/431-kafka-xiao-fei-zhe-zhi-gao-ji-api.html">
            
                <a href="../../di-4-zhang-api-shi-zhan/43-kafka-xiao-fei-zhe-api/431-kafka-xiao-fei-zhe-zhi-gao-ji-api.html">
            
                    
                    4.3.1 Kafka 消费者之高级 API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3.2" data-path="../../di-4-zhang-api-shi-zhan/43-kafka-xiao-fei-zhe-api/432-kafka-xiao-fei-zhe-zhi-di-ji-api.html">
            
                <a href="../../di-4-zhang-api-shi-zhan/43-kafka-xiao-fei-zhe-api/432-kafka-xiao-fei-zhe-zhi-di-ji-api.html">
            
                    
                    4.3.2 Kafka 消费者之低级 API
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../di-5-zhang-lan-jie-qi.html">
            
                <a href="../../di-5-zhang-lan-jie-qi.html">
            
                    
                    第 5 章 拦截器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../51-lan-jie-qi-yuan-li.html">
            
                <a href="../../51-lan-jie-qi-yuan-li.html">
            
                    
                    5.1 拦截器原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../52-lan-jie-qi-an-li.html">
            
                <a href="../../52-lan-jie-qi-an-li.html">
            
                    
                    5.2 拦截器案例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../di-6-zhang-kafka-stream.html">
            
                <a href="../../di-6-zhang-kafka-stream.html">
            
                    
                    第 6 章 Kafka stream
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../di-6-zhang-kafka-stream/61-gai-shu.html">
            
                <a href="../../di-6-zhang-kafka-stream/61-gai-shu.html">
            
                    
                    6.1 概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../di-6-zhang-kafka-stream/62-kafka-stream-shu-ju-qing-xi-an-li.html">
            
                <a href="../../di-6-zhang-kafka-stream/62-kafka-stream-shu-ju-qing-xi-an-li.html">
            
                    
                    6.2 Kafka Stream 数据清洗案例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../di-7-zhang-kuo-zhan.html">
            
                <a href="../../di-7-zhang-kuo-zhan.html">
            
                    
                    第 7 章 扩展
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../71-kafka-he-flume-ji-cheng.html">
            
                <a href="../71-kafka-he-flume-ji-cheng.html">
            
                    
                    7.1 Kafka 和 Flume 比较
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../72-kafka-he-flume-ji-cheng.html">
            
                <a href="../72-kafka-he-flume-ji-cheng.html">
            
                    
                    7.2 Kafka 和 Flume 集成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../73-kafka-pei-zhi-xin-xi.html">
            
                <a href="../73-kafka-pei-zhi-xin-xi.html">
            
                    
                    7.3 Kafka 配置信息
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.7.3.1" data-path="731-broker-pei-zhi-xin-xi.html">
            
                <a href="731-broker-pei-zhi-xin-xi.html">
            
                    
                    7.3.1 broker 配置信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.2" data-path="732-producer-pei-zhi-xin-xi.html">
            
                <a href="732-producer-pei-zhi-xin-xi.html">
            
                    
                    7.3.2 Producer 配置信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3.3" data-path="733-consumer-pei-zhi-xin-xi.html">
            
                <a href="733-consumer-pei-zhi-xin-xi.html">
            
                    
                    7.3.3 Consumer 配置信息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >7.3.1 broker 配置信息</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="731-broker-&#x914D;&#x7F6E;&#x4FE1;&#x606F;">7.3.1 broker &#x914D;&#x7F6E;&#x4FE1;&#x606F;</h1>
<table>
<thead>
<tr>
<th><strong>&#x5C5E;&#x6027;</strong></th>
<th><strong>&#x9ED8;&#x8BA4;&#x503C;</strong></th>
<th><strong>&#x63CF;&#x8FF0;</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>broker.id   &#x2705;</td>
<td></td>
<td>&#x5FC5;&#x586B;&#x53C2;&#x6570;&#xFF0C;broker&#x7684;&#x552F;&#x4E00;&#x6807;&#x8BC6;</td>
</tr>
<tr>
<td>log.dirs    &#x2705;</td>
<td>/tmp/kafka-logs</td>
<td>Kafka&#x6570;&#x636E;&#x5B58;&#x653E;&#x7684;&#x76EE;&#x5F55;&#x3002;&#x53EF;&#x4EE5;&#x6307;&#x5B9A;&#x591A;&#x4E2A;&#x76EE;&#x5F55;&#xFF0C;&#x4E2D;&#x95F4;&#x7528;&#x9017;&#x53F7;&#x5206;&#x9694;&#xFF0C;&#x5F53;&#x65B0;partition&#x88AB;&#x521B;&#x5EFA;&#x7684;&#x65F6;&#x4F1A;&#x88AB;&#x5B58;&#x653E;&#x5230;&#x5F53;&#x524D;&#x5B58;&#x653E;partition&#x6700;&#x5C11;&#x7684;&#x76EE;&#x5F55;&#x3002;</td>
</tr>
<tr>
<td>port</td>
<td>9092</td>
<td>BrokerServer&#x63A5;&#x53D7;&#x5BA2;&#x6237;&#x7AEF;&#x8FDE;&#x63A5;&#x7684;&#x7AEF;&#x53E3;&#x53F7;</td>
</tr>
<tr>
<td>zookeeper.connect  &#x2705;</td>
<td>null</td>
<td>Zookeeper&#x7684;&#x8FDE;&#x63A5;&#x4E32;&#xFF0C;&#x683C;&#x5F0F;&#x4E3A;&#xFF1A;hostname1:port1,hostname2:port2,hostname3:port3&#x3002;&#x53EF;&#x4EE5;&#x586B;&#x4E00;&#x4E2A;&#x6216;&#x591A;&#x4E2A;&#xFF0C;&#x4E3A;&#x4E86;&#x63D0;&#x9AD8;&#x53EF;&#x9760;&#x6027;&#xFF0C;&#x5EFA;&#x8BAE;&#x90FD;&#x586B;&#x4E0A;&#x3002;&#x6CE8;&#x610F;&#xFF0C;&#x6B64;&#x914D;&#x7F6E;&#x5141;&#x8BB8;&#x6211;&#x4EEC;&#x6307;&#x5B9A;&#x4E00;&#x4E2A;zookeeper&#x8DEF;&#x5F84;&#x6765;&#x5B58;&#x653E;&#x6B64;kafka&#x96C6;&#x7FA4;&#x7684;&#x6240;&#x6709;&#x6570;&#x636E;&#xFF0C;&#x4E3A;&#x4E86;&#x4E0E;&#x5176;&#x4ED6;&#x5E94;&#x7528;&#x96C6;&#x7FA4;&#x533A;&#x5206;&#x5F00;&#xFF0C;&#x5EFA;&#x8BAE;&#x5728;&#x6B64;&#x914D;&#x7F6E;&#x4E2D;&#x6307;&#x5B9A;&#x672C;&#x96C6;&#x7FA4;&#x5B58;&#x653E;&#x76EE;&#x5F55;&#xFF0C;&#x683C;&#x5F0F;&#x4E3A;&#xFF1A;hostname1:port1,hostname2:port2,hostname3:port3/chroot/path &#x3002;&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;&#xFF0C;&#x6D88;&#x8D39;&#x8005;&#x7684;&#x53C2;&#x6570;&#x8981;&#x548C;&#x6B64;&#x53C2;&#x6570;&#x4E00;&#x81F4;&#x3002;</td>
</tr>
<tr>
<td>message.max.bytes</td>
<td>1000000</td>
<td>&#x670D;&#x52A1;&#x5668;&#x53EF;&#x4EE5;&#x63A5;&#x6536;&#x5230;&#x7684;&#x6700;&#x5927;&#x7684;&#x6D88;&#x606F;&#x5927;&#x5C0F;&#x3002;&#x6CE8;&#x610F;&#x6B64;&#x53C2;&#x6570;&#x8981;&#x548C;consumer&#x7684;maximum.message.size&#x5927;&#x5C0F;&#x4E00;&#x81F4;&#xFF0C;&#x5426;&#x5219;&#x4F1A;&#x56E0;&#x4E3A;&#x751F;&#x4EA7;&#x8005;&#x751F;&#x4EA7;&#x7684;&#x6D88;&#x606F;&#x592A;&#x5927;&#x5BFC;&#x81F4;&#x6D88;&#x8D39;&#x8005;&#x65E0;&#x6CD5;&#x6D88;&#x8D39;&#x3002;</td>
</tr>
<tr>
<td>num.io.threads</td>
<td>8</td>
<td>&#x670D;&#x52A1;&#x5668;&#x7528;&#x6765;&#x6267;&#x884C;&#x8BFB;&#x5199;&#x8BF7;&#x6C42;&#x7684;IO&#x7EBF;&#x7A0B;&#x6570;&#xFF0C;&#x6B64;&#x53C2;&#x6570;&#x7684;&#x6570;&#x91CF;&#x81F3;&#x5C11;&#x8981;&#x7B49;&#x4E8E;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x78C1;&#x76D8;&#x7684;&#x6570;&#x91CF;&#x3002;</td>
</tr>
<tr>
<td>queued.max.requests</td>
<td>500</td>
<td>I/O&#x7EBF;&#x7A0B;&#x53EF;&#x4EE5;&#x5904;&#x7406;&#x8BF7;&#x6C42;&#x7684;&#x961F;&#x5217;&#x5927;&#x5C0F;&#xFF0C;&#x82E5;&#x5B9E;&#x9645;&#x8BF7;&#x6C42;&#x6570;&#x8D85;&#x8FC7;&#x6B64;&#x5927;&#x5C0F;&#xFF0C;&#x7F51;&#x7EDC;&#x7EBF;&#x7A0B;&#x5C06;&#x505C;&#x6B62;&#x63A5;&#x6536;&#x65B0;&#x7684;&#x8BF7;&#x6C42;&#x3002;</td>
</tr>
<tr>
<td>socket.send.buffer.bytes</td>
<td>100 * 1024</td>
<td>The SO_SNDBUFF buffer the server prefers for socket   connections.</td>
</tr>
<tr>
<td>socket.receive.buffer.bytes</td>
<td>100 * 1024</td>
<td>The SO_RCVBUFF buffer the server prefers for socket   connections.</td>
</tr>
<tr>
<td>socket.request.max.bytes</td>
<td>100 <em> 1024 </em> 1024</td>
<td>&#x670D;&#x52A1;&#x5668;&#x5141;&#x8BB8;&#x8BF7;&#x6C42;&#x7684;&#x6700;&#x5927;&#x503C;&#xFF0C; &#x7528;&#x6765;&#x9632;&#x6B62;&#x5185;&#x5B58;&#x6EA2;&#x51FA;&#xFF0C;&#x5176;&#x503C;&#x5E94;&#x8BE5;&#x5C0F;&#x4E8E; Java heap size.</td>
</tr>
<tr>
<td>num.partitions</td>
<td>1</td>
<td>&#x9ED8;&#x8BA4;partition&#x6570;&#x91CF;&#xFF0C;&#x5982;&#x679C;topic&#x5728;&#x521B;&#x5EFA;&#x65F6;&#x6CA1;&#x6709;&#x6307;&#x5B9A;partition&#x6570;&#x91CF;&#xFF0C;&#x9ED8;&#x8BA4;&#x4F7F;&#x7528;&#x6B64;&#x503C;&#xFF0C;&#x5EFA;&#x8BAE;&#x6539;&#x4E3A;5</td>
</tr>
<tr>
<td>log.segment.bytes</td>
<td>1024 <em> 1024 </em> 1024</td>
<td>Segment&#x6587;&#x4EF6;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x8D85;&#x8FC7;&#x6B64;&#x503C;&#x5C06;&#x4F1A;&#x81EA;&#x52A8;&#x65B0;&#x5EFA;&#x4E00;&#x4E2A;segment&#xFF0C;&#x6B64;&#x503C;&#x53EF;&#x4EE5;&#x88AB;topic&#x7EA7;&#x522B;&#x7684;&#x53C2;&#x6570;&#x8986;&#x76D6;&#x3002;</td>
</tr>
<tr>
<td>log.roll.{ms,hours}</td>
<td>24 * 7 hours</td>
<td>&#x65B0;&#x5EFA;segment&#x6587;&#x4EF6;&#x7684;&#x65F6;&#x95F4;&#xFF0C;&#x6B64;&#x503C;&#x53EF;&#x4EE5;&#x88AB;topic&#x7EA7;&#x522B;&#x7684;&#x53C2;&#x6570;&#x8986;&#x76D6;&#x3002;</td>
</tr>
<tr>
<td>log.retention.{ms,minutes,hours}</td>
<td>7 days</td>
<td>Kafka segment log&#x7684;&#x4FDD;&#x5B58;&#x5468;&#x671F;&#xFF0C;&#x4FDD;&#x5B58;&#x5468;&#x671F;&#x8D85;&#x8FC7;&#x6B64;&#x65F6;&#x95F4;&#x65E5;&#x5FD7;&#x5C31;&#x4F1A;&#x88AB;&#x5220;&#x9664;&#x3002;&#x6B64;&#x53C2;&#x6570;&#x53EF;&#x4EE5;&#x88AB;topic&#x7EA7;&#x522B;&#x53C2;&#x6570;&#x8986;&#x76D6;&#x3002;&#x6570;&#x636E;&#x91CF;&#x5927;&#x65F6;&#xFF0C;&#x5EFA;&#x8BAE;&#x51CF;&#x5C0F;&#x6B64;&#x503C;&#x3002;</td>
</tr>
<tr>
<td>log.retention.bytes</td>
<td>-1</td>
<td>&#x6BCF;&#x4E2A;partition&#x7684;&#x6700;&#x5927;&#x5BB9;&#x91CF;&#xFF0C;&#x82E5;&#x6570;&#x636E;&#x91CF;&#x8D85;&#x8FC7;&#x6B64;&#x503C;&#xFF0C;partition&#x6570;&#x636E;&#x5C06;&#x4F1A;&#x88AB;&#x5220;&#x9664;&#x3002;&#x6CE8;&#x610F;&#x8FD9;&#x4E2A;&#x53C2;&#x6570;&#x63A7;&#x5236;&#x7684;&#x662F;&#x6BCF;&#x4E2A;partition&#x800C;&#x4E0D;&#x662F;topic&#x3002;&#x6B64;&#x53C2;&#x6570;&#x53EF;&#x4EE5;&#x88AB;log&#x7EA7;&#x522B;&#x53C2;&#x6570;&#x8986;&#x76D6;&#x3002;</td>
</tr>
<tr>
<td>log.retention.check.interval.ms</td>
<td>5 minutes</td>
<td>&#x5220;&#x9664;&#x7B56;&#x7565;&#x7684;&#x68C0;&#x67E5;&#x5468;&#x671F;</td>
</tr>
<tr>
<td>auto.create.topics.enable</td>
<td>true</td>
<td>&#x81EA;&#x52A8;&#x521B;&#x5EFA;topic&#x53C2;&#x6570;&#xFF0C;&#x5EFA;&#x8BAE;&#x6B64;&#x503C;&#x8BBE;&#x7F6E;&#x4E3A;false&#xFF0C;&#x4E25;&#x683C;&#x63A7;&#x5236;topic&#x7BA1;&#x7406;&#xFF0C;&#x9632;&#x6B62;&#x751F;&#x4EA7;&#x8005;&#x9519;&#x5199;topic&#x3002;</td>
</tr>
<tr>
<td>default.replication.factor</td>
<td>1</td>
<td>&#x9ED8;&#x8BA4;&#x526F;&#x672C;&#x6570;&#x91CF;&#xFF0C;&#x5EFA;&#x8BAE;&#x6539;&#x4E3A;2&#x3002;</td>
</tr>
<tr>
<td>replica.lag.time.max.ms</td>
<td>10000</td>
<td>&#x5728;&#x6B64;&#x7A97;&#x53E3;&#x65F6;&#x95F4;&#x5185;&#x6CA1;&#x6709;&#x6536;&#x5230;follower&#x7684;fetch&#x8BF7;&#x6C42;&#xFF0C;leader&#x4F1A;&#x5C06;&#x5176;&#x4ECE;ISR(in-sync replicas)&#x4E2D;&#x79FB;&#x9664;&#x3002;</td>
</tr>
<tr>
<td>replica.lag.max.messages</td>
<td>4000</td>
<td>&#x5982;&#x679C;replica&#x8282;&#x70B9;&#x843D;&#x540E;leader&#x8282;&#x70B9;&#x6B64;&#x503C;&#x5927;&#x5C0F;&#x7684;&#x6D88;&#x606F;&#x6570;&#x91CF;&#xFF0C;leader&#x8282;&#x70B9;&#x5C31;&#x4F1A;&#x5C06;&#x5176;&#x4ECE;ISR&#x4E2D;&#x79FB;&#x9664;&#x3002;</td>
</tr>
<tr>
<td>replica.socket.timeout.ms</td>
<td>30 * 1000</td>
<td>replica&#x5411;leader&#x53D1;&#x9001;&#x8BF7;&#x6C42;&#x7684;&#x8D85;&#x65F6;&#x65F6;&#x95F4;&#x3002;</td>
</tr>
<tr>
<td>replica.socket.receive.buffer.bytes</td>
<td>64 * 1024</td>
<td>The socket receive buffer for network requests to the   leader for replicating data.</td>
</tr>
<tr>
<td>replica.fetch.max.bytes</td>
<td>1024 * 1024</td>
<td>The number of byes of messages to attempt to fetch for each   partition in the fetch requests the replicas send to the leader.</td>
</tr>
<tr>
<td>replica.fetch.wait.max.ms</td>
<td>500</td>
<td>The maximum amount of time to wait time for data to arrive   on the leader in the fetch requests sent by the replicas to the leader.</td>
</tr>
<tr>
<td>num.replica.fetchers</td>
<td>1</td>
<td>Number of threads used to replicate messages from leaders.   Increasing this value can increase the degree of I/O parallelism in the   follower broker.</td>
</tr>
<tr>
<td>fetch.purgatory.purge.interval.requests</td>
<td>1000</td>
<td>The purge interval (in number of requests) of the fetch   request purgatory.</td>
</tr>
<tr>
<td>zookeeper.session.timeout.ms</td>
<td>6000</td>
<td>ZooKeeper session &#x8D85;&#x65F6;&#x65F6;&#x95F4;&#x3002;&#x5982;&#x679C;&#x5728;&#x6B64;&#x65F6;&#x95F4;&#x5185;server&#x6CA1;&#x6709;&#x5411;zookeeper&#x53D1;&#x9001;&#x5FC3;&#x8DF3;&#xFF0C;zookeeper&#x5C31;&#x4F1A;&#x8BA4;&#x4E3A;&#x6B64;&#x8282;&#x70B9;&#x5DF2;&#x6302;&#x6389;&#x3002; &#x6B64;&#x503C;&#x592A;&#x4F4E;&#x5BFC;&#x81F4;&#x8282;&#x70B9;&#x5BB9;&#x6613;&#x88AB;&#x6807;&#x8BB0;&#x6B7B;&#x4EA1;&#xFF1B;&#x82E5;&#x592A;&#x9AD8;&#xFF0C;.&#x4F1A;&#x5BFC;&#x81F4;&#x592A;&#x8FDF;&#x53D1;&#x73B0;&#x8282;&#x70B9;&#x6B7B;&#x4EA1;&#x3002;</td>
</tr>
<tr>
<td>zookeeper.connection.timeout.ms</td>
<td>6000</td>
<td>&#x5BA2;&#x6237;&#x7AEF;&#x8FDE;&#x63A5;zookeeper&#x7684;&#x8D85;&#x65F6;&#x65F6;&#x95F4;&#x3002;</td>
</tr>
<tr>
<td>zookeeper.sync.time.ms</td>
<td>2000</td>
<td>H ZK follower&#x843D;&#x540E; ZK leader&#x7684;&#x65F6;&#x95F4;&#x3002;</td>
</tr>
<tr>
<td>controlled.shutdown.enable</td>
<td>true</td>
<td>&#x5141;&#x8BB8;broker shutdown&#x3002;&#x5982;&#x679C;&#x542F;&#x7528;&#xFF0C;broker&#x5728;&#x5173;&#x95ED;&#x81EA;&#x5DF1;&#x4E4B;&#x524D;&#x4F1A;&#x628A;&#x5B83;&#x4E0A;&#x9762;&#x7684;&#x6240;&#x6709;leaders&#x8F6C;&#x79FB;&#x5230;&#x5176;&#x5B83;brokers&#x4E0A;&#xFF0C;&#x5EFA;&#x8BAE;&#x542F;&#x7528;&#xFF0C;&#x589E;&#x52A0;&#x96C6;&#x7FA4;&#x7A33;&#x5B9A;&#x6027;&#x3002;</td>
</tr>
<tr>
<td>auto.leader.rebalance.enable</td>
<td>true</td>
<td>If this is enabled the controller will automatically try to   balance leadership for partitions among the brokers by periodically returning   leadership to the &#x201C;preferred&#x201D; replica for each partition if it is available.</td>
</tr>
<tr>
<td>leader.imbalance.per.broker.percentage</td>
<td>10</td>
<td>The percentage of leader imbalance allowed per broker. The   controller will rebalance leadership if this ratio goes above the configured   value per broker.</td>
</tr>
<tr>
<td>leader.imbalance.check.interval.seconds</td>
<td>300</td>
<td>The frequency with which to check for leader imbalance.</td>
</tr>
<tr>
<td>offset.metadata.max.bytes</td>
<td>4096</td>
<td>The maximum amount of metadata to allow clients to save   with their offsets.</td>
</tr>
<tr>
<td>connections.max.idle.ms</td>
<td>600000</td>
<td>Idle connections timeout: the server socket processor   threads close the connections that idle more than this.</td>
</tr>
<tr>
<td>num.recovery.threads.per.data.dir</td>
<td>1</td>
<td>The number of threads per data directory to be used for log   recovery at startup and flushing at shutdown.</td>
</tr>
<tr>
<td>unclean.leader.election.enable</td>
<td>true</td>
<td>Indicates whether to enable replicas not in the ISR set to   be elected as leader as a last resort, even though doing so may result in   data loss.</td>
</tr>
<tr>
<td>delete.topic.enable</td>
<td>false</td>
<td>&#x542F;&#x7528;deletetopic&#x53C2;&#x6570;&#xFF0C;&#x5EFA;&#x8BAE;&#x8BBE;&#x7F6E;&#x4E3A;true&#x3002;</td>
</tr>
<tr>
<td>offsets.topic.num.partitions</td>
<td>50</td>
<td>The number of partitions for the offset commit topic. Since   changing this after deployment is currently unsupported, we recommend using a   higher setting for production (e.g., 100-200).</td>
</tr>
<tr>
<td>offsets.topic.retention.minutes</td>
<td>1440</td>
<td>Offsets that are older than this age will be marked for   deletion. The actual purge will occur when the log cleaner compacts the   offsets topic.</td>
</tr>
<tr>
<td>offsets.retention.check.interval.ms</td>
<td>600000</td>
<td>The frequency at which the offset manager checks for stale   offsets.</td>
</tr>
<tr>
<td>offsets.topic.replication.factor</td>
<td>3</td>
<td>The replication factor for the offset commit topic. A   higher setting (e.g., three or four) is recommended in order to ensure higher   availability. If the offsets topic is created when fewer brokers than the   replication factor then the offsets topic will be created with fewer   replicas.</td>
</tr>
<tr>
<td>offsets.topic.segment.bytes</td>
<td>104857600</td>
<td>Segment size for the offsets topic. Since it uses a   compacted topic, this should be kept relatively low in order to facilitate   faster log compaction and loads.</td>
</tr>
<tr>
<td>offsets.load.buffer.size</td>
<td>5242880</td>
<td>An offset load occurs when a broker becomes the offset   manager for a set of consumer groups (i.e., when it becomes a leader for an   offsets topic partition). This setting corresponds to the batch size (in   bytes) to use when reading from the offsets segments when loading offsets   into the offset manager&#x2019;s cache.</td>
</tr>
<tr>
<td>offsets.commit.required.acks</td>
<td>-1</td>
<td>The number of acknowledgements that are required before the   offset commit can be accepted. This is similar to the producer&#x2019;s   acknowledgement setting. In general, the default should not be overridden.</td>
</tr>
<tr>
<td>offsets.commit.timeout.ms</td>
<td>5000</td>
<td>The offset commit will be delayed until this timeout or the   required number of replicas have received the offset commit. This is similar   to the producer request timeout.</td>
</tr>
</tbody>
</table>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x5C1A;&#x7845;&#x8C37;&#x5927;&#x6570;&#x636E; 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification"><br>&#x8BE5;&#x6587;&#x4EF6;&#x6700;&#x540E;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2018-11-20 18:14:18
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../73-kafka-pei-zhi-xin-xi.html" class="navigation navigation-prev " aria-label="Previous page: 7.3 Kafka 配置信息">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="732-producer-pei-zhi-xin-xi.html" class="navigation navigation-next " aria-label="Next page: 7.3.2 Producer 配置信息">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"7.3.1 broker 配置信息","level":"1.7.3.1","depth":3,"next":{"title":"7.3.2 Producer 配置信息","level":"1.7.3.2","depth":3,"path":"di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/732-producer-pei-zhi-xin-xi.md","ref":"di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/732-producer-pei-zhi-xin-xi.md","articles":[]},"previous":{"title":"7.3 Kafka 配置信息","level":"1.7.3","depth":2,"path":"di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi.md","ref":"di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi.md","articles":[{"title":"7.3.1 broker 配置信息","level":"1.7.3.1","depth":3,"path":"di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/731-broker-pei-zhi-xin-xi.md","ref":"di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/731-broker-pei-zhi-xin-xi.md","articles":[]},{"title":"7.3.2 Producer 配置信息","level":"1.7.3.2","depth":3,"path":"di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/732-producer-pei-zhi-xin-xi.md","ref":"di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/732-producer-pei-zhi-xin-xi.md","articles":[]},{"title":"7.3.3 Consumer 配置信息","level":"1.7.3.3","depth":3,"path":"di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/733-consumer-pei-zhi-xin-xi.md","ref":"di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/733-consumer-pei-zhi-xin-xi.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["splitter","expandable-chapters-small","page-toc-button","-highlight","prism","prism-themes","tbfed-pagefooter","sitemap","change_girls","livereload"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 尚硅谷大数据 2019","modify_label":"<br>该文件最后修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-solarizedlight.css"]},"disqus":{"shortName":"zhenchao125"},"livereload":{},"splitter":{},"change_girls":{"time":30,"urls":["http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/62171757.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/83394736.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/15906185.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/15906185.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/3394270.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/65028582.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/20359261.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/37472401.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/3355397.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/11075549.jpg-atguiguImg"]},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"sitemap":{"hostname":"https://www.gitbook.com/@zhenchao125"},"page-toc-button":{"maxTocDepth":3,"minTocSize":2},"prism-themes":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":" 李振超","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"大数据 Fulume 课堂笔记","language":"zh-hans","links":{"sidebar":{"联系我们":"http://www.atguigu.com/"}},"gitbook":"*","description":"课堂笔记,学生提前预习"},"file":{"path":"di-7-zhang-kuo-zhan/73-kafka-pei-zhi-xin-xi/731-broker-pei-zhi-xin-xi.md","mtime":"2018-11-20T10:14:18.807Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-25T01:42:15.294Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-change_girls/girls.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

